﻿using System;

namespace NATP2P.NATExceptionHandler
{
    /// <summary>
    /// Custom Exception For Managing Error
    /// </summary>
    [Serializable]
    public class PropertyNullException : Exception
    {
        /// <summary>
        /// Default Constructor
        /// </summary>
        public PropertyNullException() { }

        /// <summary>
        /// class with the name of the property that causes this exception.
        /// </summary>
        /// <param name="message">Message content</param>
        public PropertyNullException(string message) : base(message) { }
        /// <summary>
        /// class with a specified error message and the exception that is the cause of this exception.
        /// </summary>
        /// <param name="message"></param>
        /// <param name="inner"></param>
        public PropertyNullException(string message, Exception inner) : base(message, inner) { }
        /// <summary>
        ///  class with serialized data.
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected PropertyNullException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
    }
}
